<?php
namespace ITSociaal\Themes\Lumber;

trait ToProtocolRelativeTrait {

	/**
	 * Given an absolute URL, returns the protocol relative URL
	 *
	 * @param string $url Absolute URL
	 *
	 * @return string Protocol relative URL
	 */
	protected function toProtocolRelative($url) {
		return preg_replace("/^https?:/", "", $url);
	}

}

/* vi:set ts=4 sw=4 noet: */
